<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <title>Document</title>
    <style type="text/css">
        html {
            height: 100%
        }

        body {
            height: 100%;
            margin: 0px;
            padding: 0px
        }

        #container {
            height: 100%
        }
    </style>
    <script type="text/javascript"
        src="https://api.map.baidu.com/api?v=3.0&ak=rBYgd1W7n5GTRFGAxplLD7fyvN8juRlc"></script>
</head>

<body>
    <div id="container"></div>
    <script>
        var map = new BMap.Map("container");
        var point = new BMap.Point(106.616721, 29.537638);
        map.centerAndZoom(point, 19);
        map.enableScrollWheelZoom(true);
        // 比例尺控件
        map.addControl(new BMap.ScaleControl());
        // 缩放控件
        map.addControl(new BMap.NavigationControl());
        // 路线规划:信科楼
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.611255, 29.536799);
        driving.search(start, end);
        //实验楼
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.612164, 29.530057);
        driving.search(start, end);
        //宁静苑
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.61388, 29.53345);
        driving.search(start, end);
        //明理苑
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.616038, 29.534345);
        driving.search(start, end);
        //兴业苑
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.617553, 29.538898);
        driving.search(start, end);
        //逸夫楼
        var driving = new BMap.DrivingRoute(map, {
            renderOptions: {
                map: map,
                autoViewport: true
            }
        });
        var start = new BMap.Point(106.616721, 29.537638);
        var end = new BMap.Point(106.613974, 29.541368);
        driving.search(start, end);
        map.addTileLayer(new BMap.PanoramaCoverageLayer());
    </script>
</body>

</html>